# -*- mode: python ; coding: utf-8 -*-

block_cipher = None

a = Analysis(
    ['app.py'],
    pathex=[],
    binaries=[],
    datas=[
        ('/System/Library/Frameworks/CoreGraphics.framework', 'CoreGraphics.framework'),
        ('/System/Library/Frameworks/Quartz.framework', 'Quartz.framework'),
    ],
    hiddenimports=[
        'pyobjc',
        'pyobjc.core',
        'pyobjc.framework.AppKit',
        'pyobjc.framework.Foundation',
        'pyobjc.framework.Quartz',
    ],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[
    ],
    noarchive=False,
    optimize=0,
)

pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.datas,
    [],
    name='PassAuto',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=False,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
)

app = BUNDLE(
    exe,
    name='PassAuto.app',
    bundle_identifier='com.yourcompany.passauto',  # 替换为你的应用标识符
    info_plist={
        'NSAppleEventsUsageDescription': '需要访问窗口信息以自动填充验证码',
        'NSCameraUsageDescription': '需要屏幕录制权限用于截取验证码',
        'NSMicrophoneUsageDescription': '此应用不使用麦克风',
        'CFBundleShortVersionString': '1.0.0',
        'CFBundleVersion': '1.0.0',
    }
)